#ifndef PROTOTYPE_H
#define PROTOTYPE_H

class Person{
public:
    virtual Person* Clone()=0;
    virtual void printT()=0;
};

class JavaProgramer:public Person{


    // Person interface
public:
    Person *Clone(){
        JavaProgramer *p=new JavaProgramer;
        *p=*this;
        return p;
    }
    void printT(){
        //Nothing to be do..
    }
};

#endif // PROTOTYPE_H
